const Sequelize = require('sequelize')
const db = require('../db')
//定义地址实体对象模型
const Role = db.define(
  'Role',
  {
    id: { type: Sequelize.BIGINT, primaryKey: true, autoIncrement: true },
    roleCode: { type: Sequelize.STRING },
    roleName: { type: Sequelize.STRING },
    createdBy: { type: Sequelize.BIGINT },
    createdAt: { type: Sequelize.DATE },
    modifyBy: { type: Sequelize.BIGINT },
    updatedAt: { type: Sequelize.DATE },
  },
  {
    underscored: false,
    tableName: 'smbms_role',
  }
)

module.exports = Role
